//
//  WCNHudImageVIew.m
//  WCN
//
//  Created by wsj2015 on 16/7/5.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCNHudImageVIew.h"

@implementation WCNHudImageVIew

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self =[super initWithFrame:frame]) {
        NSMutableArray *imageArry = [[NSMutableArray alloc] initWithCapacity:0];
        
        for (int i = 1; i < 3; i++)
        {
            NSString *string = [[NSString alloc] initWithFormat:@"hulijia_log"];
            UIImage *image = [UIImage imageNamed:string];
            
            [imageArry addObject:image];  //数组添加图片
        }
        
        self.animationImages = imageArry;// 给imageView设置图片序列数组
        
        self.animationDuration = 0.2; //设置动画持续时间
        self.animationRepeatCount = MAXFLOAT; //设置重复次数
        
        [self startAnimating]; //开始动画
        
    }
    return self;
}

@end
